/* Note: 	master_final.do runs all do files to produce tables and figures for the paper "Real Consequences of Shocks to Intermediaries Supplying Corporate Hedging Instruments".
			Please read read_me.txt before running this file.
* Author: 	Hyeyoon Jung
* Date:		Jul 20, 2024
*/


clear all
cls

global FOLDER ***SPECIFY YOUR PATH HERE***

cd "$FOLDER"

global data_path "$FOLDER/Data"
global output_path "$FOLDER/Output"
global temp_path "$FOLDER/Temp"

grstyle init
grstyle set plain, horizontal grid
grstyle set color Set1

 
********************************************************************************
* Bank-level Analyses
********************************************************************************
do "./Code/position_data_final.do"		// Figures 5-6
do "./Code/bank_reg_plot_final.do" 		// Figure 7
do "./Code/bank_reg_final.do"			// Table 2, Table 5, Figure 8



********************************************************************************
* Contract-level Analyses
********************************************************************************
do "./Code/contract_reg_final.do"		// Table 6



********************************************************************************
* Firm-level Analyses
********************************************************************************
do "./Code/firm_reg_data_final.do" 			// Table 4
do "./Code/firm_reg_nointeract_final.do"	// Tables 7-8
do "./Code/firm_reg_main_final.do"			// Tables 9-12


 